package utils;

import java.util.Comparator;
import domain.Document;

public class DocumentComparator implements Comparator<Document> {

	@Override
	public int compare(Document o1, Document o2) {
		return o2.getWeigth().compareTo(o1.getWeigth());
	}
}
